{template header}
<link href="{GODHOUSE_DOMAIN_WWW}css/calendar.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="{GODHOUSE_DOMAIN_WWW}js/calendar.js"></script>
<script language="javascript" type="text/javascript" src="{GODHOUSE_DOMAIN_WWW}js/calendar-zh.js"></script>
<div class="path">
	<span>订单管理</span>
</div>
<div class="content">
	<div class="c1">
	<div style="border:1px #B9D1E3 solid; background:#FFFFFF">
		<form id="card-search" action="order-admin.htm" method="POST">
			<table height="40" border="0" cellspacing="5" cellpadding="0">
				<tr>
					<td>订单号：</td><td><input type="text" name="orderNo" value="$orderNo" /></td>
					<td>用户名：</td><td><input type="text" name="userName" value="$userName" style="width:80px;" /></td>
					<td>日期：</td><td><input type="text" name="startDate" id="startDate" onclick="showCalendar('startDate');" value="$startDate" style="width:80px" /> ~
						<input type="text" name="endDate" onclick="showCalendar('endDate');" value="$endDate" style="width:80px" /></td>
					<td><input type="submit" name="submitTo" value=" 搜索 " class="bigButton" /></td>
				</tr>
			</table>
		</form>
	</div>
	<form action="user-delete.htm" method="post">
	      <table width="100%" border="0" cellspacing="1" cellpadding="2" class="table1" style="text-align:center;margin-top:10px;">
	        <tr>
			<th width="13%">订单号</th>
			<th width="13%">总价（折扣后）</th>
			<th width="8%">用户名</th>
			<th width="14%">订单状态</th>
			<th width="15%">下单时间</th>
			<th width="12%">到货日期</th>
			<th width="12%">发货日期</th>
			<th width="13%">操作</th>
		</tr>
		<!--{loop $orders $v}-->
		
		<tr>
			<td><a href="order-view-{$v[orderId]}.htm" target="_blank">{$v[orderNo]}</a></td>
			<td>￥{$v[totalPrice]}</td>
			<td>{$v[userName]}</td>
			<td>{$v[status]}</td>
			<td>{$v[createdTime]}</td>
			<td align="left" style="padding-left:10px">
			<!--{if $v[arr_date] != '0'}-->
				还有<strong>{$v[arr_date]}</strong>个货没到
			<!--{else}-->
				<font color="#FF0000">货已全到</font>
			<!--{/if}-->		  </td>
			<td align="left" style="padding-left:10px">
			<!--{if $v[del_date] != '0'}-->
			还有<strong>{$v[del_date]}</strong>个货没发
			<!--{else}-->
				<font color="#FF0000">货已全发</font>
			<!--{/if}-->		</td>
			<td>
				<a href="order-view-{$v[orderId]}.htm">查看</a>
				<!--{if $v[isDelete]}-->
				<a href="order-trueDelete-{$v[orderId]}.htm" onclick="if(confirm('删除后，将不可恢复！你是否真的需要删除？')){return true;}else{return false;}">删除</a>
				<!--{/if}-->
				<a href="order-export-{$v[orderId]}.htm?orderno={$v[orderNo]}">导出清单</a></td>
		</tr>
		<!--{/loop}-->
		<tr>
			<td colspan="11">$multipage</td>
		</tr>
	      </table>
      </form>
	</div>
</div>
{template footer}